import pickle
import UnTaggedText
import UnTaggedAction
import TrainAction
import TrainText
import sys
sys.path.append ('../model')
import ATrainModel
import TTrainModel


class ObjMemory (): #处理对象读取和存储

    def LoadObj (self,path): #载入对象
        Obj = None

        with open (path,'rb+') as ObjFile:
            Obj = pickle.load(ObjFile)

        return Obj

    
    def SaveObj (self,Obj,path): #保存对象
        with open (path,'wb+') as ObjFile:
            pickle.dump(Obj,ObjFile)